import React, {Component} from 'react';
import _ from 'underscore';

export default class DefaultLoadingElement extends Component {
  render() {
    let currentStyle = {
      height:this.props.height,
      lineHeight:this.props.height+'px'
    };
    return (
      <div className="default-loader" style={_.extend(currentStyle, this.props.style)}>
        <div className="loader">
          <i className="iconfont">&#xe651;</i>
        </div>
        {this.props.content}
        {this.props.children}
      </div>
    );
  } // render
}

DefaultLoadingElement.defaultProps = {
  height:200,
  content:'',
  style:{}
}
